/*
    二维数组练习
*/
#include <stdio.h>
int main() {
    int arr[5][5] = {}, pos = 0, row = 0, col = 0;
    for (pos = 0; pos <= 3; pos++) {
	arr[0][pos] = 1;
    }
    for (pos = 0; pos <= 3; pos++){
	arr[pos][4] = 2;
    }
    for (pos = 1;pos <= 4; pos++) {
	arr[4][pos] = 3;
    } 
    for (pos = 1; pos <= 4; pos++) {
	arr[pos][0] = 4;
    }
    for (row = 0; row <= 4; row++) {
	for(col = 0; col <=4; col++) {
	     printf("%d ", arr[row][col]);
  	}
    printf("\n");
    }
}
